 
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>基于 layui 的极简社区页面模版</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="fly,layui,前端社区">
  <meta name="description" content="论坛是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="/static/bbs/res/layui/css/layui.css">
  <link rel="stylesheet" href="/static/bbs/res/css/global.css">
</head>
<body>

{% include '/bbs/common/header.html' %}

{% include '/bbs/common/column.html' %}

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8">
      <!--置顶start-->
    	{% if topArticleListAndUser %}
    	<div class="fly-panel">
        <div class="fly-panel-title fly-filter">
          <a>置顶</a>
          <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;">去签到</a>
        </div>
        <ul class="fly-list">
        	{% for u in topArticleListAndUser %}
          <li>
            <a href="user/home.html?id={{u.B.id}}" class="fly-avatar">
              <img src="{{u.B.avator}}" alt="作者">
            </a>
            <h2>
              <a class="layui-badge">话题</a>
              <a href="/bbs/post/{{u.A.id}}">{{u.A.title}}</a>
            </h2>
            <div class="fly-list-info">
              <a href="user/home.html?id={{u.A.authorid}}" link="">
                <!--cite>作者</cite>
                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i-->
                <!--i class="layui-badge fly-badge-vip">VIP3</i-->
              </a>
              <span>{{u.A.time}}</span>
              
              <!--span class="fly-list-nums"> 
                <i class="iconfont icon-pinglun1" title="回答"></i> 
              </span-->
            </div>
            <div class="fly-list-badge">
              
              <span class="layui-badge layui-bg-black">置顶</span>
              <!--<span class="layui-badge layui-bg-red">精帖</span>
              -->
            </div>
          </li>
          {% endfor %}

        </ul>
      </div>
      {% endif %}
    	<!--置顶end-->

      <div class="fly-panel" style="margin-bottom: 0;">
        
        {% include '/bbs/common/filter.html' %}

        <ul class="fly-list">
        	           
          {% for u in posts %}
          <li>
            <a href="/bbs/post/{{u.id}}" class="fly-avatar">
              <img src="{{u.B.avator}}" alt="作者">
            </a>
            <h2>
              <a class="layui-badge">话题</a>
              <a href="/bbs/post/{{u.A.id}}">{{u.A.title}}</a>
            </h2>
            <div class="fly-list-info">
              <a href="user/home.html?id={{u.B.id}}" target="_blank" link>
                <cite>{{u.B.nickname}}</cite>
                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                <!--i class="layui-badge fly-badge-vip">VIP3</i-->
              </a>
              <span>{{u.A.time}}</span>
              
              <!--span class="fly-list-kiss layui-hide-xs" title="悬赏金币"><i class="iconfont icon-zan"></i> {{u.popularity}}</span>
              <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span-->
              <span class="fly-list-nums"> 
                <i class="iconfont icon-pinglun1" title="回答"></i> {{u.A.popularity}}
              </span>
            </div>
            <div class="fly-list-badge">
              <!--
              <span class="layui-badge layui-bg-black">置顶</span>
              <span class="layui-badge layui-bg-red">精帖</span>
              -->
            </div>
          </li>
          {% endfor %}
        </ul>
        <div style="text-align: center">
          <div class="laypage-main">
            <a href="jie/index.html" class="laypage-next">更多求解</a>
          </div>
        </div>

      </div>
    </div>
    <div class="layui-col-md4">

      <div class="fly-panel">
        <h3 class="fly-panel-title">外链</h3>
        <ul class="fly-panel-main fly-list-static">
          <li>
            <a href="http://fly.layui.com/jie/4281/" target="_blank">站外链接</a>
          </li>
          <li>
            <a href="http://fly.layui.com/jie/5366/" target="_blank">
              站外链接
            </a>
          </li>
          
        </ul>
      </div>


      <div class="fly-panel fly-signin">
        <div class="fly-panel-title">
          签到
          <i class="fly-mid"></i> 
          <a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
          <i class="fly-mid"></i> 
          <!--a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜<span class="layui-badge-dot"></span></a-->
          <!--<span class="fly-signin-days">已连续签到<cite>16</cite>天</span>-->
        </div>
        <div class="fly-panel-main fly-signin-main">
          {% if viewObject.todaysign==0 %}
          <button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button>
          <span>可获得<cite>5</cite>金币</span>
          {% else %}
          <!-- 已签到状态 -->
          <button class="layui-btn layui-btn-disabled">今日已签到</button>
          <span>获得了<cite>5</cite>金币</span>
          {% endif %}
        </div>
      </div>

      <div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
        <h3 class="fly-panel-title">回贴周榜</h3>
        <dl>
          <!--<i class="layui-icon fly-loading">&#xe63d;</i>-->
          {% for u in coinList %}
          <dd>
            <a href="user/home.html?id={{u.id}}">
              <img src="{{u.avator}}"><cite>{{u.nickname}}</cite><i>{{u.coin}}</i>
            </a>
          </dd>
          {% endfor %}
        </dl>
      </div>

      {% include '/bbs/common/populartopic.html' %}

      {% include '/bbs/common/recommend.html' %}
      
      <div class="fly-panel fly-link">
        <h3 class="fly-panel-title">友情链接</h3>
        <dl class="fly-panel-main">
          <dd><a href="http://www.layui.com/" target="_blank">layui</a><dd>
          <dd><a href="http://layim.layui.com/" target="_blank">WebIM</a><dd>
          <dd><a href="http://layer.layui.com/" target="_blank">layer</a><dd>
          <dd><a href="http://www.layui.com/laydate/" target="_blank">layDate</a><dd>
          <dd><a href="mailto:xianxin@layui-inc.com?subject=%E7%94%B3%E8%AF%B7Fly%E7%A4%BE%E5%8C%BA%E5%8F%8B%E9%93%BE" class="fly-link">申请友链</a><dd>
        </dl>
      </div>

    </div>
  </div>
</div>

{% include '/bbs/common/footer.html' %}
 
<script src="/static/bbs/res/layui/layui.js"></script>
<script>
layui.cache.page = '';
layui.cache.user = {
  username: '游客'
  ,uid: -1
  ,avatar: '/static/bbs/res/images/avatar/00.jpg'
  ,experience: 83
  ,sex: '男'
};
layui.config({
  version: "3.0.0"
  ,base: '/static/bbs/res/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>
 
</body>
</html>